package jwdt.xadmin.system.service.impl;

import jwdt.common.dao.BaseDao;
import jwdt.xadmin.system.bean.FL;
import jwdt.xadmin.system.service.FlManageService;

import com.ezerg.db.ext.PageUtil;

public class FlManageServiceImpl implements FlManageService{
	
	private BaseDao<FL> baseDao;
	
	public void setBaseDao(BaseDao<FL> baseDao) {
		this.baseDao = baseDao;
	}
	
	@Override
	public PageUtil doList(PageUtil pu) throws Exception{
		String sql = " order by flid";
		pu.doList(FL.class,sql);
		//创造json数据对象
		return pu;
	}
	
	@Override
	public String doAddact(FL obj) throws Exception {
		return baseDao.doAddObj(obj);
	}

	@Override
	public String doEditact(FL obj, int id) throws Exception {
		return baseDao.doUpdateObj(FL.class, id, obj);
	}
	
	@Override
	public String doDelact(int id) throws Exception {
		return baseDao.doDelObj(FL.class, id);
	}

	@Override
	public FL doLoad(int id) throws Exception {
		return baseDao.doLoadObj(FL.class, id);
	}
}
